﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Snake.Scripts
{
    internal enum EPointType
    {
        Blank,
        Wall,
        Food,
    }

    internal struct Point
    {
        public int x, y;

        public Point(int x,int y)
        {
            this.x = x;
            this.y = y;
        }

        public static Point operator+ (Point a,Point b)
        {
            return new Point(a.x+b.x, a.y + b.y);
        }

        public static Point operator- (Point a, Point b)
        {
            return new Point(a.x - b.x, a.y - b.y);
        }

        public static bool operator== (Point a, Point b)
        {
            return a.x == b.x && a.y == b.y;
        }

        public static bool operator!= (Point a,Point b)
        {
            return a.x != b.x || a.y != b.y;
        }

    }

}
